﻿using System;
using System.Collections;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;




public partial class m1 : System.Web.UI.MasterPage
{
  #region Properties


  


  public Label ErrorLabel
  {
    get { return this.labErrorMsg; }
    set { this.labErrorMsg = value; }
  } //eof property


  public Label LabDebug
  {
    get
    {
      return this.labDebug;

    } //eof get
    set
    {
      this.labDebug = value;
    } //eof set 
  } //eof property


  
  //getter and setter for the drop downlist 

  #endregion //Properties


  #region TemplateMethods
  protected override void OnInit(EventArgs e)
  {   //HUOMI THIS FIRST 
    base.OnInit(e);
  } //eof OnInit


  
  protected override void CreateChildControls()
  {
    base.CreateChildControls();
    CreateDynamicControls();
  }


  protected override object SaveViewState()
  {
    return new Pair(base.SaveViewState(), null);
  }

  protected override void LoadViewState(object savedState)
  {
    base.LoadViewState(((Pair)savedState).First);
    EnsureChildControls();
  }


  #endregion //TemplateMethods

  private void CreateDynamicControls()
  {

    
    
    #region SetApplicationTitle
    Label labApplicationTitle = new Label();
    labApplicationTitle.Visible = true;
    labApplicationTitle.CssClass = "cssClassApplicationTitle";
    labApplicationTitle.Text = Resources.GV.ApplicationTitle;
    header_p.Controls.Add(labApplicationTitle);  //comm -- in both cases add the place holder
    #endregion //SetApplicationTitle
  } //eof method Create Dynamic Controls

  


} //eof class m1